package com.alibaba.citrus.cr.unified.inventory.repository;


import com.epoch.app.crunifiedinventory.domain.allocateapplyorderdetail.model.AllocateApplyOrderDetail;
import com.epoch.app.crunifiedinventory.dto.response.AllocateApplyOrderGoodsDetailDTO;

import java.util.List;

/**
 * @author heyu
 * @description 调拨预报单详情
 */
public interface AllocateApplyOrderDetailReadRepository {
    /**
     * 根据调拨单id查询调拨详情
     * @param id
     * @return
     */
    public List<AllocateApplyOrderGoodsDetailDTO> loadDetailByOrderId(Long id);

    /**
     * 根据预报单明细id查询预报单详情
     * @param ids
     * @return
     */
    public List<AllocateApplyOrderGoodsDetailDTO> loadDetailByOrderDetailIds(List<Long> ids);


    /**
     * 分页查找明细
     * 使用es 此方法作废
     * @param allocateApplyOrderQueryRequest
     * @return
     */
//    public PageResult<List<AllocateApplyOrderListDTO>> queryListDetails(AllocateApplyOrderQueryRequest allocateApplyOrderQueryRequest);
    /**
     * 根据调拨单id查询调拨详情
     * @param id
     * @return
     */
    public List<AllocateApplyOrderDetail> queryDetailByOrderId(Long id);

}
